@echo off  
cd %~dp0
set DIRNAME=.\
if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
setlocal enabledelayedexpansion
set "JAVA=%JAVA_HOME%\bin\java"
set OPTS=-Xms512M -Xmx1024M  -XX:+AggressiveOpts -XX:+UseParallelGC -XX:NewSize=64M
set LIBPATH=libs
set CP=.;
set MAIN=com.yingdong.startup.SceneServerStartUp


for /f %%i in ('dir/b %LIBPATH%\*.jar^|sort') do (set CP=!CP!%LIBPATH%\%%i;)
for /f %%i in ('dir/b dist\*.jar^|sort') do (set CP=!CP!dist\%%i;)
echo ===============================================================================  
echo.  
echo   Engine Startup Environment  
echo.  
echo   JAVA: %JAVA%  
echo.  
echo   JAVA_OPTS: %OPTS%  
echo.  
echo   CLASSPATH: %CP%  
echo.  
echo ===============================================================================  
echo.  

java -cp %CP% %MAIN%
exit